package structure;


import java.util.ArrayList;

public class Course {
	private int courseID;
	private ArrayList<Student> arrayStudents;
	private String courseTitle;
	private String dateOfExam;
	private String timeOfExam;
	private String room;
	private boolean done;
	
	public Course() {
		
	}
	
	public int getCourseID() {
		return courseID;
	}

	public void setCourseID(int courseID) {
		this.courseID = courseID;
	}

	public String getCourseTitle() {
		return courseTitle;
	}

	public void setCourseTitle(String courseTitle) {
		this.courseTitle = courseTitle;
	}

	void setStudents(ArrayList<Student> arrayStudent){
		this.arrayStudents = arrayStudent;
		for(Student e : arrayStudent){
			e.setJoinedCourse(this.courseID);
		}
	}

	public ArrayList<Student> getArrayStudents() {
		return arrayStudents;
	}

	public String getDateOfExam() {
		return dateOfExam;
	}

	public void setDateOfExam(String dateOfExam) {
		this.dateOfExam = dateOfExam;
	}

	public String getTimeOfExam() {
		return timeOfExam;
	}

	public void setTimeOfExam(String timeOfExam) {
		this.timeOfExam = timeOfExam;
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	@Override
	public String toString() {
		return this.courseTitle + " " + this.dateOfExam + " " + this.room + " " + this.timeOfExam + " " + timeOfExam;
	}
	
	
}
